using System;
using ExFlash.Records;

namespace ExFlash.Actions
{
    public class RegisterParam : ISwfSerializable
    {
        private readonly int _swfVersion;
        
        public Byte Register
        {
            get;
            protected set;
        }

        public StringRecord ParamName
        {
            get;
            protected set;
        }

        public RegisterParam(int version)
        {
            _swfVersion = version;
        }

        #region ISwfSerializable Members

        public void SwfDeserialize(BinaryBitReader reader)
        {
            Register = reader.ReadByte();

            ParamName = new StringRecord(_swfVersion);
            ParamName.SwfDeserialize(reader);
        }

        public void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}